package com.ews.onlineexchange.comparator;

import java.util.Comparator;

public class CountComparator implements Comparator<Object> {

	@Override
	public int compare(Object arg0, Object arg1) {	
		Object[] array1 = ((Object[])arg0);
		Object[] array2 = ((Object[])arg1);
		Long diff = (Long) array2[1] -  (Long) array1[1];
		return diff.intValue();
	}

}
